﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BuXiaChu.OrderDishes.Model;
using BuXiaChu.OrderDishes.BLL;

namespace BuXiaChu.OrderDishes.Web.CallCenter.Modules
{
    public partial class NoticeList : System.Web.UI.UserControl
    {
        public string SqlWhereString
        {
            get;
            set;
        }
        protected List<NoticeBoardModel> noticeList = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            var sqlWhere = " CreateDate>='" + DateTime.Now.ToString("yyyy-MM-dd") + "'";
            var pageCount = 0;
            noticeList = NoticeBoardManager.Search(sqlWhere, 0, 0, out pageCount);
        }
    }
}